<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/3/3
 * Time: 22:34
 */

namespace app\common\model;


use think\Model;
use think\model\concern\SoftDelete;

class Recruit extends Model
{
    use SoftDelete;
    /**
     * 关联用户
     * @return \think\model\relation\HasOne
     */
    public function user()
    {
        return $this->hasOne('User','id','uid');
    }

    /**
     * 关联用户详情
     * @return \think\model\relation\HasOne
     */
    public function userinfo()
    {
        return $this->hasOne('Userinfo','user_id','uid');
    }
}